package com.garlicts.framework.crawler.executor.crawler;

import org.apache.commons.pool2.impl.GenericObjectPool;
import com.gargoylesoftware.htmlunit.WebClient;

public class WebClientPool extends GenericObjectPool<WebClient> {

	public WebClientPool() {
		super(new WebClientFactory(), new WebClientPoolConfig());
	}
	
	public static WebClientPool getInstance() {
		return Singleton.webClientPool; 
	}

	private static class Singleton{
		private static WebClientPool webClientPool = new WebClientPool();
	}	
	
}
